﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NetworkHelper
{
    public class SingleInstanceApplication : System.Windows.Application
    {
        protected override void OnStartup(System.Windows.StartupEventArgs e)
        {
            // Call the OnStartup event on our base class
            base.OnStartup(e);

            // Create our MainWindow and show it
            MainWindow window = new MainWindow();
            window.Show();
        }

        public void Activate()
        {
            // Reactivate the main window
            MainWindow.Activate();
        }
    }
}